#include<iostream>
#include<sys/time.h>
#include<sys/resource.h>
#include<stdlib.h>
#include<unistd.h>
#include<jsoncpp/json/json.h>
#include<boost/algorithm/string.hpp>
#include<ctemplate/template.h>
int main()
{ 
    std::string in_html = "./test.html";
    std::string value = "⽐特就业课";
    ctemplate::TemplateDictionary  root("test");
    root.SetValue("key",value);

    //获取被渲染的网页对象
    ctemplate::Template *tpl=ctemplate::Template::GetTemplate(in_html,ctemplate::DO_NOT_STRIP);

    //添加字典数据到网页中
    std::string out_html;
    tpl->Expand(&out_html,&root);
    std::cout<<out_html;
    return 0;
}
